<?php 
require_once('nav.php');
$id = $_GET['id'];  
$sql = "select * from videotype where tid={$id}";   
$result = mysql_query($sql) or die('查询失败！'.mysql_error());   
$row = mysql_fetch_assoc($result);

$tid = $row['tid'];
$typename = $row['typename'];
   
?>


<div class="col-sm-9 col-md-10">
   <h2 class="text-center">视频类别修改</h2>
   <form method="post" action="vtUpdate.php" enctype="multipart/form-data" class="form-horizontal">
      <input type="hidden" name="id" value="<?php echo $id;?>">

      <div class="form-group">
        <label for="tid" class="col-md-2 col-xs-3 control-label">序号</label>
        <div class="col-md-10 col-xs-9">
          <input type="hidden" class="form-control" id="tid" placeholder="序号" name="tid" value="<?php echo $row['tid'];?>">
        </div>
      </div>

      <div class="form-group">
        <label for="typename" class="col-md-2 col-xs-3 control-label">类别名称</label>
        <div class="col-md-10 col-xs-9">
          <input type="text" class="form-control" id="typename" placeholder="类别名称" name="typename" value="<?php echo $row['typename'];?>">
        </div>
      </div>

      <div class="form-group">
        <label class="col-xs-3"></label>
        <div class="col-md-10 col-xs-9 col-md-offset-2 col-xs-offset-3">
          <input type="submit" value="更新">
          <input type="reset" value="重置">
        </div>
      </div>

  </form>
  </div>
<?php 
require_once('footer.php');
?>


<?php 
require_once('nav.php');
$id = $_GET['id'];  
$sql = "select * from videotype where tid={$id}";   
$result = mysql_query($sql) or die('查询失败！'.mysql_error());   
$row = mysql_fetch_assoc($result);

$tid = $row['tid'];
$typename = $row['typename'];
   
?>


<div class="col-sm-9 col-md-10">
   <h2 class="text-center">视频类别修改</h2>
   <form method="post" action="vtUpdate.php" enctype="multipart/form-data" class="form-horizontal">
      <input type="hidden" name="id" value="<?php echo $id;?>">

      <div class="form-group">
        <label for="tid" class="col-md-2 col-xs-3 control-label">序号</label>
        <div class="col-md-10 col-xs-9">
          <input type="hidden" class="form-control" id="tid" placeholder="序号" name="tid" value="<?php echo $row['tid'];?>">
        </div>
      </div>

      <div class="form-group">
        <label for="typename" class="col-md-2 col-xs-3 control-label">类别名称</label>
        <div class="col-md-10 col-xs-9">
          <input type="text" class="form-control" id="typename" placeholder="类别名称" name="typename" value="<?php echo $row['typename'];?>">
        </div>
      </div>

      <div class="form-group">
        <label class="col-xs-3"></label>
        <div class="col-md-10 col-xs-9 col-md-offset-2 col-xs-offset-3">
          <input type="submit" value="更新">
          <input type="reset" value="重置">
        </div>
      </div>

  </form>
  </div>
<?php 
require_once('footer.php');
?>


<?php 
require_once('nav.php');
$id = $_GET['id'];  
$sql = "select * from videotype where tid={$id}";   
$result = mysql_query($sql) or die('查询失败！'.mysql_error());   
$row = mysql_fetch_assoc($result);

$tid = $row['tid'];
$typename = $row['typename'];
   
?>


<div class="col-sm-9 col-md-10">
   <h2 class="text-center">视频类别修改</h2>
   <form method="post" action="vtUpdate.php" enctype="multipart/form-data" class="form-horizontal">
      <input type="hidden" name="id" value="<?php echo $id;?>">

      <div class="form-group">
        <label for="tid" class="col-md-2 col-xs-3 control-label">序号</label>
        <div class="col-md-10 col-xs-9">
          <input type="hidden" class="form-control" id="tid" placeholder="序号" name="tid" value="<?php echo $row['tid'];?>">
        </div>
      </div>

      <div class="form-group">
        <label for="typename" class="col-md-2 col-xs-3 control-label">类别名称</label>
        <div class="col-md-10 col-xs-9">
          <input type="text" class="form-control" id="typename" placeholder="类别名称" name="typename" value="<?php echo $row['typename'];?>">
        </div>
      </div>

      <div class="form-group">
        <label class="col-xs-3"></label>
        <div class="col-md-10 col-xs-9 col-md-offset-2 col-xs-offset-3">
          <input type="submit" value="更新">
          <input type="reset" value="重置">
        </div>
      </div>

  </form>
  </div>
<?php 
require_once('footer.php');
?>
